package com.trela.paymeontime.web.model;

import org.joda.time.Period;

public enum Occurence {
    SINGLE, NONREGULAR, WEEKLY {
        {
            period = new Period().withWeeks(1);
        }
    },
    MONTHLY {
        {
            period = new Period().withMonths(1);
        }
    },
    QUARTERLY{
        {
            period = new Period().withMonths(3);
        }
    }, ANNUALLY{
        {
            period = new Period().withYears(1);
        }
    };
    Period period = null;

    public Period getPeriod() {
        return period;
    }
}
